import { http } from '@/utils/request.js'

const gfRecordService = {
  list: (params) => {
    return http.get('/system/gfRecord/list', params)
  },
  edit: (params) => {
    return http.put('/system/gfRecord', params)
  },
  uploadOss: (gfRecordId, ossID) => {
    return http.put(`/system/gfRecord/${gfRecordId}/${ossID}`, null)
  },
  confirm: (data) => {
    return http.post('/system/gfRecord/confirm', data)
  },
  payByCustomerSelf: (id, data) => {
    return http.put(`/system/gfRecord/payByCustomerSelf/${id}?paymentTime=${data?.paymentTime}`, null)
  },
  noPayMoney: (id) => {
    return http.put(`/system/gfRecord/noPayMoney/${id}`, null)
  },
}

export default gfRecordService
